package org.rainy.gift;


import org.rainy.gift.domain.LoginUser;
import org.rainy.gift.fallback.AuthClientFallback;
import org.rainy.gift.util.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 这是提供授权中心中的接口
 */
@FeignClient(value = "gift-auth",fallbackFactory = AuthClientFallback.class)
public interface AuthClient {
    @PutMapping("/loginUser")
    AjaxResult addOrUpdate(@RequestBody LoginUser loginUser);
}
